<?php
session_start();
require_once 'header.php';
$webroot="";
function __autoload($className)
	{
    	require_once('class/' . $className . '.class.php');
	}
session::need_seller();
$userId=session::getuserid();
$getAgent=user::findAgentByUserId($userId);
if($getAgent!='0')
{
	$getCountCc=database::LimitQuery("ccinfo",array(
	'select' => 'country,count(*)',
	'condition' => array(
	'site' => $getAgent,
	'userid' => '0',
	'orderid' => '0'
	),
	'groupby' => 'group by country'
	));
	require_once 'html/sellerReport.php';
}
else
{
	echo "you are not our seller";
}

?>